package com.sjzxywlkj.cplife.alipay.config;

import com.alipay.api.AlipayClient;
import com.alipay.api.DefaultAlipayClient;

/**
 * 
 * @ClassName:  AlipayConfig   
 * @Description:TODO(Alipay连接基础配置公共请求参数)   
 * @author: Radon 
 * @date:   2018年2月8日 下午2:18:03   
 *     
 * @Copyright: 2018 Radon. All rights reserved. 
 * 注意：本内容仅限于Radon使用
 */
public class AlipayConfig {

	// 商户appid!!
	public static String APPID = "2018040302496636";
	// 私钥 pkcs8格式的
	public static String RSA_PRIVATE_KEY = "MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCC9TkIKpFUSher5Ewu0bP+Js7JESDuu2UplskZS7m0kWO4lCbuF3c84dXksZe4RNbIfuEJkBCgL8GFR/PYecU6ejHceJbyV2/Rgr/SC8dcA+oUMJnvjzBNiLtqsgHtDE+qHD9e03yKahhL7fF/8cfWVS4nf+qE6njXDVnqADVDuDWHiG0vZHbtI5nTfX+3t4aS0qodc/hKjTAohSoVlI67J71/X/k9/IutAJHxQar8t9XZt9WdE3v2DxDTCn3ZxZfIpY34E/Vvcy4Ydvh/s6zjOJYlbGaL5gW80qndN7hEwWLb6ngoV6Rd0haI4ye67I6cvjVBhqCRcZ5RL7cpGCyZAgMBAAECggEANCt0uOgcVTPfEj80ikJILitPnZIRSImm11aWbllYdbKlw1Zh29/FRJ/DEgQdqO7jkaPaCnE17lqYAXyUi9yW0aD0VBxGJeznQtOPjyHaHbIBgmGKMYEdgQXDg9G+Kq0I33+5TxF5P7rcSwNTfeDX926foGS5DJJL6YAMHchPb9ZSo/FUm2jT+72akNgYIXoyFemJWf1Xnt3Fr9eSYLC0867t1iAAn4qw6TX/6HO5HhfpksHjFAEJ7b+TjvRfCtcH0MM75LgaO8t3QcFG/61gEKd6m6vVs1UKdVbUSkMXxO09T0VdxM3pOYNluXBYFg6NXoZ0j2PSTUEV/bsTpNEyAQKBgQDYzkFoN6M++6hEod7Ew8aiCCiCN3CivsUI8RKcUfhTD/M1fVL/sSK9E+JOhTj76yn1a1ib500jCbZhSyDasDtWlqjA1Bh/85WsYuMXR20xWsB7CfqP0gQu+VSA+KwE3bzJgzpSP5ad+yGElBovhNVJ53iFa96PbE1zYQVMaCTHMQKBgQCaofDYDTvy/Gi4FkGlzAebPDmYyH3s5ob2GF8eBNhN+0ICNmTD5j5n/sCXSw1V+nFJju5n5QkphB6f72FSh7rxJVQGIVCyq7L13znRwdJ3oVcWpO6W66q3Aox1rZonV2/jPC/X/l5Itwyrj0xY6JAdtg7xPQB+zGN6m+gygsax6QKBgBGrNX9l0WMHpV36hyon/l8kJRD/ralFvM8OvoKI16EFUr/QN9xotjkMjsvxZYR6VNAQcIc8IXgyiW+CbOoFpMBYxOX6IwkCc/c5k+JIyuhTyg388TOZXQfq/+0G1xYKcCFIFY+waPj1B3VDkKLAw5UjTRoqgVfU7rbxeDoS3rRxAoGAN9Y8MrfsqtxMMBURVX4sTPjdT3cuSYogt+KrDhrvxJDzD/t2PWr5o/HQt5EJWr+ZgtdS7T8+JLipmlUFTpjmf0dcZO5IxovLjo8xwLV9e2dOHEYoRWUJ+xW3hJLQdF5Vb7d/Cz616wn2UEjpZ71qtN/V23SMpjzFuzNrEDo652kCgYAFIDUlfuAsebU7G9yJznmpdlSyTnMOxpwfALO0CBpDoIMmhAsjzlU+8vVR7Oxof5wbnuN307O/V0tFrQnnr/8FXVQrZuVL1um9/0cu+uqwQ5PaashrOl4u0+9UQfKkmc4jBe6p5DwEgUzHI3m9L0lUo+LfDmHY9EynOkumFEWs/Q==";
	// 服务器异步通知页面路径 需http://或者https://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
	public static String notify_url = "https://www.xieyingwangluo.com/XYCplife/receive";
	// 页面跳转同步通知页面路径 需http://或者https://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问 商户可以自定义同步跳转地址
	public static String return_url = "https://www.xieyingwangluo.com/XYCplife/user/loginToken";
	// 请求网关地址
	public static String URL = "https://openapi.alipay.com/gateway.do";
	// 编码
	public static String CHARSET = "UTF-8";
	// 返回格式
	public static String FORMAT = "json";
	// 支付宝公钥
	public static String ALIPAY_PUBLIC_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlmPbe9B2Ymxw1OWfW4dXw+iu/lK7gIfYXCWStXPBPvUj9f9/3Ht3V220TnH0kE+NKqndwvoQC4wQyBDUJeRdU6rN2P8+cEvA8ZvPbAf6FVUEZdn7fq9sV1e25+RvlOdEiLHf9jHXuK58lYWFDmME3xuFRyXttOR7Tr7Xq9w9Z1HbCBTBH9zRz8JDgLYcZif4EKMdxxxpzSe/V0OSIs0kfkVe0ZF+1V34MIeDzyR1wl05NbIamR1ckgpfD+fybzoCTmqfHyTS7cp9HjH4grBZmkEI3bf6WzlKp/3NCyVUcVaJkJ/wFkLC4k+0cBwHGvwZ3c6ECsmyCBNL7OqBwsnObQIDAQAB";
	// 日志记录目录
	public static String log_path = "/log";
	// RSA2
	public static String SIGNTYPE = "RSA2";

	//接口调用配置
	public static AlipayClient aClient(){
		AlipayClient alipayClient = new DefaultAlipayClient(URL,APPID,RSA_PRIVATE_KEY,"json",CHARSET,ALIPAY_PUBLIC_KEY,SIGNTYPE);
		
		return alipayClient;
	}
}
